package com.example.demo.entity;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

@Data
public class Taco {
    @NotNull
    @Size(min = 5, message = "Name must be at least 5 characters log")
    private String name;
    @Size(min = 1, message = "Your must choose at least 1 ingredient")
    private List<Ingredient> ingredients;

    private Long id;


    private Date createAt;
}
